package com.steven.im.webSocket.MessageEntity;

public class MsgEntity {
    private String from;//来源ID
    private String to;//目标ID
    private String cmd;//命令码(11)int类型
    private String createTime;//消息创建时间long类型
    private String msgType;//消息类型int类型(0:text、1:image、2:voice、3:vedio、4:music、5:news)
    private String chatType;//聊天类型int类型(0:未知,1:公聊,2:私聊)
    private String group_id;//群组id仅在chatType为(1)时需要,String类型
    private String content;//内容
    private String extras;//扩展字段,JSON对象格式如：{'扩展字段名称':'扩展字段value'}

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getChatType() {
        return chatType;
    }

    public void setChatType(String chatType) {
        this.chatType = chatType;
    }

    public String getGroup_id() {
        return group_id;
    }

    public void setGroup_id(String group_id) {
        this.group_id = group_id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getExtras() {
        return extras;
    }

    public void setExtras(String extras) {
        this.extras = extras;
    }
}
